<!-- A welcoming statement -->
<?php
	// $current_client was set in the controller file
	echo "Welcome, " . $current_client['Client']['first_name'] . " " . $current_client['Client']['last_name'];
?>

<br />
<br />

<table>
<?php
	foreach($current_client['Survey'] as $survey){
		echo "<tr>";
		echo "<td>" . $survey['name'] . "</td>";
		echo "<td><a href='/clients/results/".$survey['id']."/'>View Results</a></td>";
		echo "<td><a href='/clients/remove_survey/".$survey['id']."/'>Remove</a></td>";
		echo  "</tr>";
	}
?>
</table>
<br /><br />
<!-- A button to direct clients to page where they will create surveys -->
<form action="/clients/new_survey">
<input type="submit" value="New Survey">
</form>




<!--
<form method="get" action="/clients/add_survey"
<input type="submit" name="redirect" value="New Survey">
</form>
 -->

<!-- 
 <h3>Creat a new Survey:</h3><br />
 <form action="/clients/add_survey" method="get" >
	Survey Name:
	<input name='data[Survey][name]' id="SurveyName" type="text" /><br />
	<input type="submit" name='redirect" value="Create Survey" />
 </form>
 -->
